package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.common.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppointmentMapper {

    Appointment queryById(Long id);

    List<Appointment> selectAll();

    List<Appointment> queryForList(QueryObject qo);

    void insert(Appointment appointment);

    void update(Appointment appointment);

    void softDelete(@Param("id") Long id, @Param("deleteFlag") Integer deleteFlag);

    void deleteById(Long id);

    void changStatus(@Param("id") Long id, @Param("status") Integer status);

}

